package puzzle.core;

/** Specifies the type of tile. */
public enum TileType {
  GROUND,
  START,
  END,
  WALL,
  BOOST,
  PORT;
  
  public static String[] list() {
    TileType[] t = values();
    String[] s = new String[t.length];
    for (int i=0; i<t.length; i++) {
      String txt = t[i].toString();
      if (txt.length()>1) {
        txt = txt.toLowerCase().replace('_', ' ');
        
        String chr = String.valueOf(txt.charAt(0)).toUpperCase();
        txt = chr + txt.substring(1); 
      }
      s[i] = txt;
    }
    return s;
  }
}
